package com.travel.server.manager.dto.response.data;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/14 18:40
 * @Desc:
 */
@Data
public class QueryOperateRefundAnalysisResponse {

    @JSONField(name = "today_refund_order")
    private String todayRefundOrder = "0";

    @JSONField(name = "yesterday_refund_order")
    private String yesterdayRefundOrder = "0";

    @JSONField(name = "today_refund_amount")
    private String todayRefundAmount = "0";

    @JSONField(name = "yesterday_refund_amount")
    private String yesterdayRefundAmount = "0";

    @JSONField(name = "today_refund_ratio")
    private String todayRefundRatio = "0%";

    @JSONField(name = "yesterday_refund_ratio")
    private String yesterdayRefundRatio = "0%";

    @JSONField(name = "refund_order_list")
    private List<RefundItem> refundOrderList;

    @JSONField(name = "refund_amount_list")
    private List<RefundItem> refundAmountList;

    @JSONField(name = "refund_ratio_list")
    private List<RefundItem> refundRatioList;

    @Data
    public static class RefundItem{

        @JSONField(format = "yyyy-MM-dd")
        private Date day;

        private String order;

        private String amount;

        private String ratio;
    }
}
